CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CMAKE_CXX_COMPILER      g++)
SET(CMAKE_CXX_FLAGS         "-g3 -Wall -fPIC -std=c++11")
SET(LIBRARY_OUTPUT_PATH     ${PROJECT_SOURCE_DIR}/Lib)
INCLUDE_DIRECTORIES(../LFC/Include)

SET(SOURCE_FILES
    Source/WebSocketClientEvent.cpp
    Source/WebSocketFrameServer.cpp
    Source/WebSocketProxy.cpp
    Source/WebSocketConnector.cpp
    Source/SHA1.cpp
)

SET(INCLUDE_FILES
    Include/WebSocketClientEvent.h
    Include/WebSocketFrameServer.h
    Include/WebSocketProxy.h
    Include/WebSocketConnector.h
    Source/SHA1.h
)

ADD_LIBRARY(WebSocket STATIC ${SOURCE_FILES} ${INCLUDE_FILES})
